#include "gus2.h"
enum
{
	EIndex = 0x00,
	ENext  = 0x01,

	EState = 0x10,
};
#if GUS2_ENABLE_ATTRI
const __gui_attr_icons CTRL_ICONS_ATTR = {
	/*.Index = */EIndex,
	/*.Next  = */ENext,
};

const __gui_attr_gif_icon CTRL_GIF_ICON_ATTR = {
	/*.icons = */&CTRL_ICONS_ATTR,
	/*.State = */EState
};
#endif
void gui_icons_set_index(bytearray_t* ba, unsigned int index)
{
	gui_ctrl_set_attrs(ba, "bd", EIndex, index);
}

void gui_icons_set_next(bytearray_t* ba, eicons_next_dir_t dir)
{
	gui_ctrl_set_attrs(ba, "bb", ENext, (unsigned char)dir);
}
void gui_gif_icon_set_state(bytearray_t* ba, egif_icon_state_t state)
{
	gui_ctrl_set_attrs(ba, "bb", EState, (unsigned char)state);
}



